libxl: convert strings and ints to xenbus_state
authorOlaf Hering <olaf@aepfle.de>
Fri, 24 Apr 2015 09:07:14 +0000 (09:07 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 5 May 2015 11:31:24 +0000 (12:31 +0100)
commit25519c75b7e05fd82d7f2959aaa85518b5564cc3
treedf9921df977fedef83e418d736dcadbbb23783e4
parent125c3c05a9a25e1d00405c08fda432b0ce5606b1
libxl: convert strings and ints to xenbus_state

Convert all plain ints and strings which are used for xenbus "state"
files to xenbus_state. This makes it easier to find code which deals
with backend/frontend state changes.

Convert usage of libxl__sprintf to GCSPRINTF.

No change in behaviour is expected by this change, beside a small
increase of runtime memory usage in places that used a string constant.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_device.c
tools/libxl/libxl_pci.c